package com.ad.pet.app.account.share;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ad.pet.R;
import com.ad.pet.common.data.utils.glide.GlideUtil;
import com.ad.pet.models.remote.share.ShareIconBean;

import java.util.List;

/**
 * Created by SEELE on 2019/7/4.
 */

public class ShareIconAdapter extends BaseQuickAdapter<ShareIconBean, BaseViewHolder> {

    public ShareIconAdapter(@Nullable List<ShareIconBean> data) {
        super(R.layout.item_share_icon, data);

    }

    @Override
    protected void convert(BaseViewHolder helper, ShareIconBean item) {
        helper.setText(R.id.tv_icon,item.getTitle());
        GlideUtil.load(mContext,item.getPic(),(ImageView) helper.getView(R.id.iv_icon));
    }
}


